package cc.admin.modules.wea.entity;

import java.io.Serializable;
import java.util.Date;

import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import cc.admin.poi.excel.annotation.Excel;
import cc.admin.common.aspect.annotation.Dict;

/**
 * @Description: 七天预报
 * @Author: cc-admin
 * @Date:   2024-09-05
 * @Version: V1.0.0
 */
@Data
@TableName("wea_seven_forecast")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="wea_seven_forecast对象", description="七天预报")
public class WeaSevenForecast {

	/**编号*/
	@Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
	private String id;
	/**平台名称*/
	@Excel(name = "平台名称", width = 15)
    @ApiModelProperty(value = "平台名称")
	private String platformId;
	/**创建时间*/
	@Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**公司id*/
	@Excel(name = "公司id", width = 15)
    @ApiModelProperty(value = "公司id")
	private String tenantId;
	/**起报时间*/
	@Excel(name = "起报时间", width = 15)
    @ApiModelProperty(value = "起报时间")
	private Date reportDate;
	/**预报数据*/
	@Excel(name = "预报数据", width = 15)
    @ApiModelProperty(value = "预报数据")
	private String data;

	public WeaSevenForecast() {}

	public WeaSevenForecast(JSONObject data) {
		this.id = data.getString("id");
		this.platformId = data.getString("platformId");
		this.createTime = data.getDate("createTime");
		this.reportDate = data.getDate("dateTime");
		this.data = data.getString("data");
	}
	public WeaSevenForecast(JSONObject data, String id) {
		this.id = id;
		this.platformId = data.getString("platformId");
		this.createTime = null;
		this.reportDate = data.getDate("dateTime");
		this.data = data.getString("data");
	}

}
